import request2 from '@/utils/request2'
import { safetyApiUrl } from '../../config'

export default {
  findListByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/risk-project-grade/findListByMain', method: 'post', params, data
    })
  },
  editByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/risk-project-grade/editByMain', method: 'post', params, data
    })
  },
  deleteByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/risk-project-grade/deleteByMain', method: 'post', params, data
    })
  },
  createByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/risk-project-grade/createByMain', method: 'post', params, data
    })
  },
  getRiskTemplate(data, params) {
    return request2({
      url: safetyApiUrl + '/risk-project-grade/getRiskTemplate', method: 'get', params, data
    })
  },
  findListByMainId(data, params) {
    return request2({
      url: safetyApiUrl + '/risk-project-grade/findListByMainId/' + params.id, method: 'get', params, data
    })
  }
}